package com.hunau.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hunau.common.annotation.Excel;
import com.hunau.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 物联网终端对象 tb_ioterminal
 * 
 * @author ruoyi
 * @date 2020-03-17
 */
public class TbIoterminal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;
    /**地址**/
    private Integer addr;
    /** $column.columnComment */
    @Excel(name = "${comment}")//, readConverterExp = "$column.readConverterExp()"
    private String imei;

    /** 类型 */
    @Excel(name = "类型")
    private String ctype;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String conip;

    /** 当前状态,0-关 1-开 */
    @Excel(name = "当前状态,0-关 1-开")
    private Integer status;

    /** 安装时间 */
    @Excel(name = "安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startdate;
    private String beginStartdate;
    private String endStartdate;

    /** 更换时间 */
    @Excel(name = "更换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exdate;
    private String beginExdate;
    private String endExdate;

    /** 存放位置编号 */
    @Excel(name = "存放位置编号")
    private Long deptid;

    /** 录入人编号 */
    @Excel(name = "录入人编号")
    private String uid;

    /** 备注 */
    @Excel(name = "备注")
    private String demo;

    /** 0-无效,1-有效 */
    @Excel(name = "0-无效,1-有效")
    private String delflag;
    /** 0-不在线,1-在线 */
    //@Excel(name = "0-无效,1-有效")
    private String online;

    public String getOnline() {
        return online;
    }

    public void setOnline(String online) {
        this.online = online;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getBeginStartdate() {
        return beginStartdate;
    }

    public void setBeginStartdate(String beginStartdate) {
        this.beginStartdate = beginStartdate;
    }

    public String getEndStartdate() {
        return endStartdate;
    }

    public void setEndStartdate(String endStartdate) {
        this.endStartdate = endStartdate;
    }

    public String getBeginExdate() {
        return beginExdate;
    }

    public void setBeginExdate(String beginExdate) {
        this.beginExdate = beginExdate;
    }

    public String getEndExdate() {
        return endExdate;
    }

    public void setEndExdate(String endExdate) {
        this.endExdate = endExdate;
    }

    public Integer getAddr() {
        return addr;
    }

    public void setAddr(Integer addr) {
        this.addr = addr;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImei(String imei) 
    {
        this.imei = imei;
    }

    public String getImei() 
    {
        return imei;
    }
    public void setCtype(String ctype) 
    {
        this.ctype = ctype;
    }

    public String getCtype() 
    {
        return ctype;
    }
    public void setConip(String conip) 
    {
        this.conip = conip;
    }

    public String getConip() 
    {
        return conip;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setStartdate(Date startdate) 
    {
        this.startdate = startdate;
    }

    public Date getStartdate() 
    {
        return startdate;
    }
    public void setExdate(Date exdate) 
    {
        this.exdate = exdate;
    }

    public Date getExdate() 
    {
        return exdate;
    }
    public void setDeptid(Long deptid) 
    {
        this.deptid = deptid;
    }

    public Long getDeptid() 
    {
        return deptid;
    }
    public void setUid(String uid) 
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }
    public void setDemo(String demo) 
    {
        this.demo = demo;
    }

    public String getDemo() 
    {
        return demo;
    }
    public void setDelflag(String delflag) 
    {
        this.delflag = delflag;
    }

    public String getDelflag() 
    {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("imei", getImei())
            .append("ctype", getCtype())
            .append("conip", getConip())
            .append("status", getStatus())
            .append("startdate", getStartdate())
            .append("exdate", getExdate())
            .append("deptid", getDeptid())
            .append("uid", getUid())
            .append("demo", getDemo())
            .append("delflag", getDelflag())
               .append("addr", getAddr())
            .toString();
    }
}
